A for loop and a sub for loop store data